<template>
  <div class="login">
    <el-form class="box">
      <div class="logoImg">
        <img src="~@/assets/common/login-logo.png" alt="">
      </div>
      <el-form-item>
        <el-input
          prefix-icon="el-icon-user-solid"
          class="input"
          placeholder="请输入手机号"
        />
      </el-form-item>
      <el-form-item>
        <el-input
          prefix-icon="el-icon-lock"
          class="input"
          type="password"
          show-password
          placeholder="请输入密码"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary">登录</el-button>
      </el-form-item>
      <el-form-item>
        <el-link :underline="false">还没有账号？立即注册</el-link>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'Login',
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.login {
  width: 100%;
  height: 100%;
  background: url('~@/assets/common/login.jpg') no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  .box {
    width: 520px;
    height: 400px;
    padding: 20px 35px;
    .logoImg {
      text-align: center;
      margin-bottom: 50px;
    }
    .input {
      border-radius: 10px;
      // background-color: #d4e5ff;
    }
    .el-button--primary {
      width: 100%;
      background-color: #4080fe;
      border: none;
      padding: 20px;
    }
    ::v-deep .el-input__inner {
      height: 50px;
      background-color: #d3e4ff;
    }
  }
  ::v-deep .el-form-item__error {
    color: #fff;
  }
  ::v-deep .el-form-item.is-error .el-input__inner {
    border: #fff !important;
  }
  .el-link {
    font-size: 16px;
    color: #fff;
  }
  ::v-deep .el-form-item__content {
    text-align: center !important;
  }
}
</style>
